package com.web44.ssm.web;

import com.web44.ssm.utils.ResponseVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title: HelloController
 * @Description:
 * @Auther: py
 * @Version: 1.0
 * @create 2024/2/19 9:28
 */
@RestController
public class HelloController {

    @GetMapping("add")
    @RequiresPermissions("emp:add")
    public ResponseVo addWeb() {
        return ResponseVo.ok("新增！");

    }
    @GetMapping("edit")
    @RequiresPermissions("emp:edit")
    public ResponseVo editWeb() {
        return ResponseVo.ok("修改！");

    }

    @GetMapping("del")
    @RequiresPermissions("emp:del")
    public ResponseVo delWeb() {
        return ResponseVo.ok("删除！");

    }
}
